<template>
	<view>
		<bsNavBar title='发布者信息'></bsNavBar>
		<u-cell-group v-if='form'>
			<u-cell-item :value-style='valueStyle' :title-style='titleStyle' :arrow='false' title="证件号码" :value="form.userId"></u-cell-item>
			<u-cell-item :use-label-slo='true' :value-style='valueStyle' :title-style='titleStyle' :arrow='false' title="证件照片/扫描照">
				<view class="" slot="label" @click="handBigImg(form.userIdImg)">
					<u-image border-radius='8' :fade="true" duration="450" width="180rpx" height="180rpx" :src="form.userIdImg"></u-image>
				</view>
			</u-cell-item>
			<u-cell-item :use-label-slo='true' :value-style='valueStyle' :title-style='titleStyle' :arrow='false' title="单位营业执照">
				<view @click="handBigImg(form.businessImg)" class="" slot="label">
					<u-image border-radius='8' :fade="true" duration="450" width="180rpx" height="180rpx" :src="form.businessImg"></u-image>
				</view>

			</u-cell-item>
			<u-cell-item :value-style='valueStyle' :title-style='titleStyle' :arrow='false' title="收款账号" :value="form.bankUserName"></u-cell-item>
			<u-cell-item :value-style='valueStyle' :title-style='titleStyle' :arrow='false' title="活动联系人" :value="form.activityUser"></u-cell-item>
			<u-cell-item :value-style='valueStyle' :title-style='titleStyle' :arrow='false' title="联系人手机号" :value="form.activityUserPhone"></u-cell-item>
			<u-cell-item :value-style='valueStyle' :title-style='titleStyle' :arrow='false' title="邮箱地址" :value="form.email"></u-cell-item>
		</u-cell-group>
		<view class="tips-box">
			<u-alert-tips :show-icon='true' type="warning" description="注：如需更改，请使用电脑访问官方网站提交申请  官网地址：www.cbda1984.com "></u-alert-tips>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				titleStyle: {
					fontWeight: "bold",
					color: '#303030',
					fontSize: '28rpx'
				},
				valueStyle: {
					color: '#666666',
					fontSize: '32rpx'
				},
				status: '',
				form: {},
			};
		},
		onLoad() {
			this.init()
		},
		methods: {
			async init() {
				let res = await this.$u.api.selectManager()
				console.log(res, '发布者信息')
				this.form = res
			},
			//查看作品大图
			handBigImg(itemImg) {
				uni.previewImage({
					current: 0,
					urls: [itemImg]
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.tips-box {
		padding: 30rpx;
	}
</style>
